import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'

const routes = [
    {
        path:'/',
        name:Home,
        component:Home
    },
    {
        path:'/itemMusic',
        component: ()=> import("@/views/itemMusic.vue")
    },
    {
        path:'/login',
        component: ()=>import("@/views/login.vue")
    },
    {
        path:'/search',
        component: ()=>import("@/views/search.vue")
    },
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})


export default router